const body_dataset = window.document.body.dataset;
const BODY_ENV = {};
Object.keys(body_dataset).forEach((key) => {
  BODY_ENV[key.toLocaleUpperCase()] = body_dataset[key];
});

const ENVs = {
  VUE_APP_PUBLIC_PATH: "",
  VUE_APP_VERSION: "",
  IS_DEV: process.env.NODE_ENV === "development",
  ...BODY_ENV,
};

export default ENVs;
